package com.atguigu.gmall.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.gmall.product.eneity.BaseAttrValue;
import com.atguigu.gmall.product.service.BaseAttrValueService;
import com.atguigu.gmall.product.mapper.BaseAttrValueMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class BaseAttrValueServiceImpl extends ServiceImpl<BaseAttrValueMapper, BaseAttrValue>
    implements BaseAttrValueService{

    /**
     *根据平台属性ID获取平台属性对象数据
     * @return
     */
    @Override
    public List<BaseAttrValue> getAttrInfoValue(Long attrId) {

        LambdaQueryWrapper<BaseAttrValue> queryWrapper = new LambdaQueryWrapper<BaseAttrValue>().eq(BaseAttrValue::getAttrId, attrId);
        List<BaseAttrValue> list = list(queryWrapper);
        return list;
    }
}




